public class Memento {
    private String nameState;
    private int noState;

    Memento(Originator originator) {
        nameState=originator.getCurrentName();
        noState=originator.getCurrentNo();
    }

    public Memento() {
    }

    public String getNameState() {
        return nameState;
    }

    public int getNoState() {
        return noState;
    }
}
